package com.woniuxy.dao;

import com.woniuxy.pojo.Car;
import com.woniuxy.pojo.CurrentUnit;
import com.woniuxy.pojo.Dictionary;
import com.woniuxy.pojo.RefuelingRecord;

import java.util.List;

public interface RefuelingRecordMapper {
    /**
     * 查询所有出车记录
     * @return
     */
    public List<RefuelingRecord> selectAllRefuelingRecord();

    public List<Car> selectAllCarById(int id);

    /**
     * 查询所有加油站
     * @param id
     * @return
     */
    public List<CurrentUnit> selectAllStationById(int id);

    public List<CurrentUnit> selectAllDriverById(int id);

    /**
     * 查询油号
     * @param id
     * @return
     */
    public  List<Dictionary> selectAllOilById(int id);


    /**
     * 根据车id模糊查询
     * @param
     * @return
     */
    public List<RefuelingRecord> selectRefuelingRecordsByProperty(RefuelingRecord refuelingRecord);

    /**
     * 根据id删除加油记录
     * @param id
     */
    public void deleteRefuelingRecordById(int id);

    /**
     * 增加加油记录
     * @param
     * @return
     */
    public int insertRefuelingRecord(RefuelingRecord RefuelingRecord);

    /**
     * 修改加油记录
     * @param RefuelingRecord
     * @return
     */
    public int updataRefuelingRecord(RefuelingRecord RefuelingRecord);

    public List<Car> selectAllCars();

    /**
     * 查询油号
     * @return
     */
    public List<Dictionary> selectAllOil();

    /**
     * 查加油站
     * @return
     */
    public List<CurrentUnit> selectAllStation();


}
